using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Net;

namespace System.WebControls
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:DateTimeControl runat=server></{0}:DateTime>")]

    public class DateTimeControl : CompositeControl
    {
        [Bindable(true)]
        [Category("Appearance")]
        [DefaultValue("")]
        [Localizable(true)]

        protected Label Label1;

        
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            //
            Label1 = new Label();
            Label1.Text = System.DateTime.Now.ToString();
            Controls.Add(Label1);

        }






    }
}
